package com.woniuxy.controller;

import com.woniuxy.controller.entity.User;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: 马宇航
 * @Todo: TODO
 * @DateTime: 22/01/25/0025 下午 3:15
 * @Component: 成都蜗牛学苑
 **/
@RestController
@RequestMapping("/json")
public class JsonManagerController {
    @RequestMapping("/addUser")
    public String addOne(@RequestBody User user,String id){
        System.out.println("JsonManagerController.addOne方法执行成功！"+id);
        return user.toString();
    }
}
